#@layout()
#define content()
<div class="content-wrapper">

    <section class="content-header">
        <h1>
            角色设置
            <small>ZZRole Setting</small>
        </h1>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">
                    <div class="box-header ">
                        <h3 class="box-title"></h3>
                    </div>
                    <form class="form-horizontal form-setting" autocomplete="off"
                          action="#(CPATH)/admin/user/dozzRoleSave"
                          method="POST"
                    >
                        <input type="hidden" name="zzrole.id" value="#(zzrole.id ??)">
                        <div class="box-body ">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">角色名称</label>

                                <div class="col-sm-6">
                                    <input type="input" name="zzrole.name" class="form-control" value="#(zzrole.name ??)"
                                           placeholder="建议设置一个直观的、不需要解释的名称">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">领导</label>
                                <div class="col-sm-6">
                                    #if(zzrole)
                                    <input type="checkbox" class="switchery" name="isleader" value="#(zzrole.level>0)">
                                    #else
                                    <input type="checkbox" class="switchery" name="isleader" value="false">
                                    #end
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">描述</label>
                                <div class="col-sm-6">
                                    <textarea rows="5" name="zzrole.description" class="form-control"
                                              placeholder="该角色的一些描述 或 备注">#(zzrole.description ??)</textarea>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">所属部门</label>
                                <div class="col-sm-6">
                                    <select class="form-control" name="zzrole.belongto" οnchange="selectOnchang(this)">
                                        <option>军事部</option>
                                        <option>政工部</option>
                                        <option>文化部</option>
                                        <option>改错组</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <div class="col-sm-offset-2 col-sm-10 submit-block">
                                <div class="box-submit">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </div>
        </div>
    </section>

</div>
#end
